const express = require('express')
const utility = require('utility')

const app = express()

app.get('/', (req, res) => {
  const q = req.query.q
  const md5Value = utility.md5(q)
  res.send(md5Value)
})

app.listen(3000, () => {
  console.log('server is runing 3000');
})